/* -----------------------------------------------------------------------------
 * PROJECT    : lwf
 * FILE       : FractionActionForm.java
 *
 * HISTORY:
 * Date          Author                        Description
 * ----------------------------------------------------------------------------- 
 * Mar 12, 2011  mycodetalks			       Created
 */
package net.lwf.web.struts.action.maths.faction;

import java.util.ArrayList;
import java.util.List;

import lwf.handler.entities.RadioData;
import net.lwf.web.struts.action.LwfWorksheetActionForm;

/**
 * Class description goes here
 */
public class FractionActionForm extends LwfWorksheetActionForm {

	private static final long serialVersionUID = 1L;
	
	//private List<RadioData> answerChoices;
	private List<RadioData> operations;
	private String operationType;
	private String complexity;

//	public List<RadioData> getAnswerChoices() {
//		if(answerChoices != null && answerChoices.size() != 0) {
//			//Collections.shuffle(answerChoices);
//		}
//		return answerChoices;
//	}
//
//	public void setAnswerChoices(List<RadioData> answerChoices) {
//		this.answerChoices = answerChoices;
//	}
	
	public List<RadioData> getOperations() {
		return operations;
	}

	public void setOperations(List<RadioData> operations) {
		this.operations = operations;
	}

	public List<RadioData> getChallenges() {
		List<RadioData> radiodata = new ArrayList<RadioData>();
		RadioData data = new RadioData("simple", "simple");
		radiodata.add(data);
		data = new RadioData("medium", "medium");
		radiodata.add(data);
		data = new RadioData("difficult", "difficult");
		radiodata.add(data);
		return radiodata;
	}
	
	public String getComplexity() {
		return complexity;
	}

	public void setComplexity(String complexity) {
		this.complexity = complexity;
	}

	
	public String getOperationType() {
		return operationType;
	}

	public void setOperationType(String operationType) {
		this.operationType = operationType;
	}

	public void reset() {
		//this.answerChoices = null;
		this.operations = null;
		this.operationType = null;
		this.complexity = null;
		setHtmlQuestion(null);
		setQuestionNumber(0);
		setAskQuestion(false);
	}

}



